﻿#include "FTabWidget.h"
#include "../Base/FTheme.h"


FTabWidget::FTabWidget(QWidget *parent)
    : QTabWidget{parent}
    , m_bar(new FTabBar(this))
{
    setTabBar(m_bar);

    QString qss = QString(R"(
FTabWidget::pane {
    border: none;
    background: %1;
}
FTabWidget {
    background: transparent;
}
)").arg(FColors::getBackgroundColor().name(QColor::HexArgb));

    setStyleSheet(qss);
}

void FTabWidget::setBarStyle1()
{
    m_bar->setBarStyle1();
}

void FTabWidget::setBarStyle2()
{
    m_bar->setBarStyle2();
}
